package cn.dnf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

//springboot启动类
@SpringBootApplication
//开启Eureka
@EnableEurekaServer
public class EurekaApp {

    public static void main(String[] args) {
        //new SpringApplicationBuilder(Application.class).web(true).run(args);
        SpringApplication.run(EurekaApp.class,args);

    }

}